﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Collections.Specialized;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    class Enrollment
    {

        public Enrollment()
        {
           Guid g= Guid.NewGuid();
            
            Configuration config = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath);
            UUID = config.AppSettings.Settings["UUID"].Value;
            if (UUID == null || UUID == "")
            {
                UUID = Guid.NewGuid().ToString();
                MessageBox.Show(UUID);
                config.AppSettings.Settings["UUID"].Value = UUID;
                config.Save(ConfigurationSaveMode.Modified);
            }
        }
        private String UUID;

        public String getUUID()
        {
            return UUID;
        }

        public bool Verification()
        {
            return false;
        }
    }
}
